﻿<Page
    x:Class="BTN.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:bbs="using:BBS"
    xmlns:local="using:BTN"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="400"></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <WebView Source="http://m.btn.co.kr/" x:Name="webView"
                        NavigationStarting="webView_NavigationStarting"
         />
        <Grid Margin="20" Grid.Column="1">
            <Grid.RowDefinitions>
                <RowDefinition></RowDefinition>
                <RowDefinition Height="45"></RowDefinition>
                <RowDefinition Height="40"></RowDefinition>
                <RowDefinition Height="80"></RowDefinition>
            </Grid.RowDefinitions>
            <MediaElement x:Name="mediaPlayer">
            </MediaElement>
            <bbs:StreamPlayer x:Name="streamPlayer">
            </bbs:StreamPlayer>
            <Slider x:Name="sliderProgress" Grid.Row="1" VerticalAlignment="Center"
                ValueChanged="SeekToMediaPosition" />

            <TextBlock x:Name="mediaUrl" Grid.Row="2" FontSize="40" />

            <StackPanel Name="spMediaControl" Grid.Row="3" Orientation="Horizontal">
                <Button x:Name="btnPlay" Content="Play" Width="111" Height="43" Click="btnPlay_Click"/>
                <Button x:Name="btnPause" Content="Pause"  Width="111" Height="43" Click="btnPause_Click"/>
                <Button x:Name="btnStop" Content="Stop"  Width="111" Height="43" Click="btnStop_Click"/>
            </StackPanel>
        </Grid>

    </Grid>
</Page>
